<!--[if isset($objectArray)]-->
  <style>
  img.recthumb{
        float:left;
        padding:15px 10px 0px 0px;
  }
  tr.result {
        min-height:110px;
        width:100%;
        border-width:1px;
        border-top-style:dotted;
        clear:both;
        float:left;
        margin-top:5px;
  }
  div.result h1 {
        font-size:16px;
  }

  #showPriceButton{
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border:none;
    width:150px;
    height:35px;
    color:#fff;
    font-size:20px;
    border:#FFF 3px solid;
    background-color:#0896ff;
    text-shadow: 0.05em 0.05em 0.05em #333;
    float:right;
  }

  #distance{
    color:#cccccc;
  }

  #address{
    color:#ff9900;
  }

  #link{
    color:#3366ff;
    font-weight:bolder;
  }

  #hotelname{
    color:#6AA118;
    font-size:16px;
    font-weight:bolder;
    
  }

</style>
<script type="text/javascript" src="modules/POBPortal/pnjavascript/wz_tooltip.js"></script> 
<em>ผลลัพท์ทั้งหมด : <!--[$objectArray|@count]--> โรงแรม</em>  
<table width="100%">
  <!--[foreach from=$objectArray item=item]-->
    <tr class="result" onmouseover="this.bgColor='#ecf5ff'" onmouseout="this.bgColor='#ffffff'">

      <td valign="top">
        <!--[if isset($item.ThumbItem.URL)]-->
          <a class="image_border" target="_blank" href="#" 
              onmouseover="Tip('&lt;img src=\'<!--[$item.ThumbItem.URL]-->\' width=\'450\'/&gt;')" 
              onmouseout="UnTip()
          ">
              <img width="100" height="100" src="<!--[$item.ThumbItem.URL]-->" width="100px" height="75px" alt="<!--[$item.name]-->" class="recthumb">
          </a>
        <!--[else]-->
              <img width="100" height="100" src="http://www.econ.mju.ac.th/alumni/images/no_image.gif" alt="<!--[$item.name]-->" class="recthumb">
        <!--[/if]-->
      </td>
      <td>
        <table width="100%">
          <tr>
            <td>
              <p>
                <span id="hotelname">
                  <a href="d">
                    <!--[$item.name]-->
                  </a>
                </span> 
                <img src="modules/POBPortal/pnimages/<!--[$item.rating]-->star.png" width="66px" height="12px" align="absmiddle" alt="ประกาศ" title="rating"/>

                <br>
                <em id="address">
                  <!--[$item.address_line]-->, <!--[$item.city_name]-->, <!--[$item.state_province]-->, <!--[$item.country]-->&nbsp;<!--[$item.postal_code]-->&nbsp;
                  
                </em><br>
                <span class="description"><!--[$item.descriptions|truncate:250:'&hellip;']-->&nbsp;&nbsp;</span>
                <em>
                  <a href="index.php?module=POBHotel&type=user&func=view&ctrl=hotel&id=<!--[$item.id]-->">more>></a>
                </em>
                <!-- <button id="showPriceButton" type="submit">แสดงราคา</button> -->
              </p>
            </td>
          </tr>
          <tr>
            <td>
              <!--[if $item.Availabilities]-->
                <table width="100%">
                  <tr>
                    <th width="60%" align="left">ประเภทห้องที่ว่าง</th>
                    <th width="15%" align="center">จำนวนห้องที่เหลือ</th>
                    <th width="30%" align="right">ราคา</th>
                  </tr>

                  <!--[group_availabilities_array avail=$item.Availabilities]-->
                  <!--[foreach from=$groupAvailabilities item=itemAvailabilities]-->
                  <tr>
                    <td align="left">
                      <a href="index.php?module=POBPortal&type=search&func=view&lat=<!--[$item.Latitude]-->&lon=<!--[$item.Longitude]-->&startDate=<!--[$item.startDate]-->&endDate=<!--[$item.endDate]-->&InvCode=<!--[$itemAvailabilities.InvCode]-->">
                        <!--[$itemAvailabilities.InvCode]-->
                      </a>
                    </td>
                    <td align="center"><!--[$itemAvailabilities.Limit]--></td>
                    <td align="right">THB <!--[$itemAvailabilities.Rate|number_format:2:".":","]--></td>
                  </tr>
                  <!--[/foreach]-->
                </table>
              <!--[else]-->
              <tr align="left">
                <td><font color="#cc0066"><b>ไม่มีห้องว่างเหลือ</b></font></td>
              </tr>
              <!--[/if]-->
            </td>
          </tr>
        </table>

      </td>
    </tr>
  <!--[/foreach]--> 
</table>

<!--[else]-->
<div class="recommend">
    <p>
      <h1>ไม่มีข้อมูล</h1>
    </p>
</div>
<!--[/if]-->